#!/bin/bash

#    "Content": "A431303A33303A31354E343030352E37363738334531313632312E35373739382B30303039392E352DB0B2C8ABB5BDB4EF303031",
#    "Content": "A430373A34363A32304E323831342E31323538364531313235322E36303137322B30303037382E302DC4E3BAC354455354",
set -x

# 远航测试任务
curl -X POST http://124.70.103.32:5000/api/receive \
-H "Content-Type: application/json" \
-d '{
  "IdNumber": "15302521(模拟测试)",
  "MessageId": "1",
  "Content": "A430373A34363A32304E323831342E31323538364531313235322E36303137322B30303037382E302DC4E3BAC3544553544040D4B6BABDB2E2CAD4C8CECEF14040",
  "Time": "2021-12-16 10:30:33",
  "DeliveryCount": "1",
  "NetworkMode": "BD"
}'


# 演习任务
curl -X POST http://124.70.103.32:5000/api/receive \
-H "Content-Type: application/json" \
-d '{
    "IdNumber": "15702512(模拟测试)",
    "MessageId": "2",
    "Content": "A431303A33303A31354E343030352E37363738334531313632312E35373739382B30303039392E352DB0B2C8ABB5BDB4EF3030314040D1DDCFB0C8CECEF14040",
    "Time": "2023-10-13 09:00:00",
    "DeliveryCount": "2",
    "NetworkMode": "BD"
}'

# 演习任务1
curl -X POST http://124.70.103.32:5000/api/receive \
-H "Content-Type: application/json" \
-d '{
    "IdNumber": "15702513(模拟测试)",
    "MessageId": "3",
    "Content": "A430323A34333A32354E323831332E39333731304531313235322E34383430332B30303438332E302DC4E3BAC3544553544040D1DDCFB0C8CECEF1314040",
    "Time": "2023-10-13 10:00:00",
    "DeliveryCount": "1",
    "NetworkMode": "BD"
}'

exit

curl -X POST http://124.70.103.32:5000/api/receive \
-H "Content-Type: application/json" \
-d '{
    "IdNumber": "15702514(模拟测试)",
    "MessageId": "3",
    "Content": "A431303A30323A30304E323831342E31323733374531313235322E36303432332B30303036302E352DC4E3BAC354455354",
    "Time": "2023-10-13 10:00:00",
    "DeliveryCount": "1",
    "NetworkMode": "BD"
}'

curl -X POST http://124.70.103.32:5000/api/receive \
-H "Content-Type: application/json" \
-d '{
    "IdNumber": "15702515(模拟测试)",
    "MessageId": "3",
    "Content": "A430353A30383A31384E333431312E38343238354531303835312E32383936372B30303430342E312DC4E3BAC374657374313233",
    "Time": "2023-10-13 10:00:00",
    "DeliveryCount": "1",
    "NetworkMode": "BD"
}'

